package com.clqteam.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * 从order中获取orderId进orderinfo
 * @author ZHX
 *
 */
public class GetOrderTabController extends HttpServlet{

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
		req.setCharacterEncoding("UTF8");
		resp.setCharacterEncoding("UTF8");
		
		String oIds = req.getParameter("oId");
		int oId = Integer.parseInt(oIds);
		
		HttpSession session = req.getSession();
		session.setAttribute("oId", oId);
		
		
	}
	
}
